package com.example.springboot.utils;

//import org.springframework.security.oauth2.client.registration.ClientRegistration;
//import org.springframework.security.oauth2.core.AuthorizationGrantType;
//import org.springframework.stereotype.Component;
//
//@Component
//public class ClientRegistrationRepository implements org.springframework.security.oauth2.client.registration.ClientRegistrationRepository {
//    @Override
//    public ClientRegistration findByRegistrationId(String registrationId) {
//        return ClientRegistration.withRegistrationId("github")
//                .clientId("Ov23liYvRqyahmMl1l9J")
//                .clientSecret("121f866cae062d05ad27d61747df946ff7f79602")
//                .authorizationGrantType(AuthorizationGrantType.AUTHORIZATION_CODE)
//                .redirectUri("http://localhost:9090/login/oauth2/code/github")
//                .authorizationUri("https://github.com/login/oauth/authorize")
//                .tokenUri("https://github.com/login/oauth/access_token")
//                .userInfoUri("https://api.github.com/user")
//                .userNameAttributeName("id")
//                .build();
//    }
//}
